using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERPBackend.Models
{
    public class FirstLevelCategory : BaseModel
    {

        [Required]
        [StringLength(50)]
        public string CategoryCode { get; set; } = string.Empty;

        [Required]
        [StringLength(255)]
        public string CategoryName { get; set; } = string.Empty;

        [Required]
        [Range(0, 1)]
        public byte Status { get; set; } = 1;

        // Navigation property for second level categories
        public ICollection<SecondLevelCategory> SecondLevelCategories { get; set; } = new List<SecondLevelCategory>();
    }
}